package com.g2room.search.es.biz;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentFactory;

import com.g2room.search.es.engine.Index;

public class TestIndex {

	public static void main(String[] args) {
//		DbOperat op = new DbOperat();
//		DbOperat.getDataFromDb("tog_forum");
		String idx = "1nsh";
		String type = "sysLink";
//		EsClient.initMapping(idx, type);
		Index index = new Index(idx);
//		String content = "{\"categoryCode\":\"zxdt\",\"categoryId\":34,\"categoryName\":\"资讯动态\",\"content\":\"<p>　　根据《教育部办公厅关于开展全国高校创新创业总结宣传工作的通知》(教学厅函 [2016]3号)要求，全国高等学校学生信息咨询与就业指导中心依据《全国高校创新创业总结宣传工作实施方案》，组织开展2016年度全国高校创新创业评比工作，现已评选出全国高校创新创业50强，除去中央部门所属的19所高等院校以及25所省属本科院校外，高职高专院校入围了6所。快来瞧一瞧是哪六所专科高校，同时和北京、清华等牛逼大学同入围此次评选。</p> <p>　　<b>包头轻工职业技术学院</b></p> <p>　　包头轻工职业技术学院是内蒙古自治区唯一一所全日制轻工类高等职业技术院校。学院始建于1956年，2002年经自治区人民政府批准，教育部备案，由原内蒙古轻工业学校独立改建而成，隶属包头市人民政府。经过近60年的建设和发展，学院积淀了深厚的办学底蕴，先后获得了“自治区文明单位”、“自治区先进基层党组织”、“自治区社会奉献突出单位”、“包头市模范单位”、“ 包头市民族团结进步模范集体”、“引进国外智力工作先进单位”等荣誉，学院在2007年教育部人才培养工作水平评估中，被评为“优秀”。</p> <p>　　学校占地1200亩，建筑面积30万平方米。拥有200多个校内实验、实训室和校外实习、实训基地，各类教学、实训仪器设备总值近亿元。拥有功能完备的现代化图书馆，馆藏图书84.5余万册，建有十万兆路由交换机为核心，万兆交换机到楼宇，千兆交换机上桌面的高带宽、高性能校园网络。学校下设15个二级学院、1个附属中专学校和1个附属职业高级中学，开设有食品、机电、化工、能源、检测、金融、生物、汽车、艺术、信息、农林等43个高职专业，拥有16门自治区精品课程，10个自治区品牌专业，1个自治区重点建设专业，6个自治区级优秀教学团队。</p> <p>　<b>　江苏农牧科技职业学院</b></p> <p>　　江苏农牧科技职业学院是中国东南沿海地区唯一以培养农牧科技类技术技能型人才为主的高等院校，学院座落在江苏省泰州市。学校前身为始建于1958年9月的“泰县农业中等技术学校”，2013年3月，学校更名为“江苏农牧科技职业学院”，校名沿用至今。2010年，学院被教育部、财政部确定为“首批国家示范性(骨干)高等职业院校”。</p> <p>　　根据2015年10月官网显示，学院占地面积4500余亩，校舍建筑面积52 万平方米，拥有各级各类实验室、实训室200个，建有36个院内实训基地，校外实训实习基地700个;图书馆藏书103万册，教学科研仪器设备总值 1.54亿元;有6个二级学院、5个系，设置专业52个。</p> <p>　<b>　浙江工贸职业技术学院</b></p> <p>　　浙江工贸职业技术学院(Zhejiang Industry &amp; Trade Vocational College)简称“浙工贸”，位于浙江温州，是一所由杭州钢铁集团公司举办，并经中华人民共和国教育部备案、浙江省人民政府批准设立的省属公办全日制高等职业院校。学校的前身是1960年9月创建的温州动力机厂技工学校。</p> <p>　　浙江工贸职业技术学院共有府东路和瓯江口两个校区，占地600多亩，学院建有 12个院系，开设31个高职高专专业。据2016年1月学校网站信息显示，浙江工贸职业技术学院共有市级重点实验室1个，市级研究院3个，省级科研创新团队1支，市社会科学重点研究基地1个，并与中国科学院固体物理研究所共建有先进材料研发中心。</p> <p>　　<b>山东商业职业技术学院</b></p> <p>　　山东商业职业技术学院，是经教育部批准设立的省属高职院校，学校是国家示范性高职院校、全国职业教育先进单位、全国毕业生就业典型经验(高校)50强高校，山东省教育工作先进单位、山东省德育示范高校、山东省首批大学生创业教育示范校。2007年学校被教育部确定为“国家示范性高等职业院校建设计划”立项建设单位。</p> <p>　　截至2015年12月，学校有彩石和洪楼两个校区，校园占地面积2600亩，校舍建筑面积42万平方米，有校内实训基地163个，有校外实训基地250个，图书馆藏书120万册;设有10个教学院部和1个合作教育本科部，设有46 个高职招生专业及专业方向，3个“3+2”本科分段培养试点专业、6个五年一贯制招生专业;</p> <p>　<b>　深圳职业技术学院</b></p> <p>　　深圳职业技术学院是深圳市人民政府举办的一所专科层次全日制普通高等学校。2003年通过教育部高职高专人才培养工作水平评估，2009年成为首批国家示范性高等职业院校。2001年学校先后与国内129所高校签订联合培养硕士研究生、博士研究生协议。</p> <p>　　截至2016年5月，学院有留仙洞、西丽湖、官龙山、华侨城、凤凰山五个校区，校园总面积236.02万平方米，校舍建筑面积58.84万平方米，固定资产总值7.66亿元(校舍除外)，图书馆藏有纸质图书241万册;有16个二级教学单位，开设专业79个(其中包括4个与深圳大学联合培养项目本科专业)，</p> <p>　　<b>黔东南民族职业技术学大院</b></p> <p>　　黔东南民族职业技术学院是贵州省人民政府批准、国家教育部备案成立的“省州共管、州管为主”的公办全日制高等职业院校，2011年，被列为贵州省示范性高等职业技术院校。</p> <p>　　截至2016年3月，学院校园占地面积1503亩，校舍建筑面积30万平方米;有在编教职工690人，其中专任教师490人，正高职25人，副高职155人，全日制在校生近1.4万人，其中，高职生近1.2万人;设有6个系3个二级学院，27个大专专业。</p>\",\"createTime\":\"2016-08-18 10:04:35.0\",\"hot\":2,\"id\":1002,\"publishTime\":\"2016-08-11\",\"sourceUrl\":\"http://gaokao.eol.cn/gaozhi/gzkx/201608/t20160811_1439072.shtml\",\"state\":9,\"title\":\"全国高校创新创业50强：6所专科学校和北大清华同时入围\",\"typeCode\":\"gaokao\",\"typeId\":50,\"typeName\":\"高考\",\"updateTime\":\"2016-10-15 14:58:12.0\"}";
//		System.out.println(content);
//		index.createIndex("1002", content, type);
//		index.delIndexes(ids, "majorRank");
		index.delIndex(27l, type);
//		index.deleteType("majorRank", "699");
		
	}
	
	public static void getMappings() {
		Map<String, XContentBuilder> builderMap = new HashMap<String, XContentBuilder>();
		try {
			builderMap.put("ncee_arti", XContentFactory.jsonBuilder().startObject().startObject("ncee_arti").startObject("properties").startObject("source_url").field("type", "string").field("index","not_analyzed").endObject().startObject("state").field("type", "string").field("index","not_analyzed").endObject().startObject("category_id").field("type", "integer").endObject().startObject("type_id").field("type", "integer").endObject().startObject("type_code").field("type", "string").field("index","not_analyzed").endObject().startObject("content").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("title").field("type", "string").field("index","not_analyzed").endObject().startObject("source").field("type", "string").field("index","not_analyzed").endObject().startObject("update_time").field("type", "date").endObject().startObject("category_name").field("type", "string").field("index","not_analyzed").endObject().startObject("publish_time").field("type", "date").endObject().startObject("md5").field("type", "string").field("index","not_analyzed").endObject().startObject("create_time").field("type", "date").endObject().startObject("type_name").field("type", "string").field("index","not_analyzed").endObject().startObject("hot").field("type", "string").field("index","not_analyzed").endObject().startObject("page_num").field("type", "integer").endObject().startObject("category_code").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("univ_info", XContentFactory.jsonBuilder().startObject().startObject("univ_info").startObject("properties").startObject("summary").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolid").field("type", "integer").endObject().startObject("belong").field("type", "string").field("index","not_analyzed").endObject().startObject("study").field("type", "double").endObject().startObject("schooltype").field("type", "string").field("index","not_analyzed").endObject().startObject("rankingCollegetype").field("type", "integer").endObject().startObject("recruit").field("type", "string").field("index","not_analyzed").endObject().startObject("level").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolnature").field("type", "string").field("index","not_analyzed").endObject().startObject("description").field("type", "string").field("index","not_analyzed").endObject().startObject("province").field("type", "string").field("index","not_analyzed").endObject().startObject("tuition").field("type", "string").field("index","not_analyzed").endObject().startObject("isArt").field("type", "string").field("index","not_analyzed").endObject().startObject("work").field("type", "double").endObject().startObject("isSingle").field("type", "string").field("index","not_analyzed").endObject().startObject("oldname").field("type", "string").field("index","not_analyzed").endObject().startObject("f211").field("type", "string").field("index","not_analyzed").endObject().startObject("category").field("type", "string").field("index","not_analyzed").endObject().startObject("recruitPhone").field("type", "string").field("index","not_analyzed").endObject().startObject("recruitUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("autonomyrs").field("type", "string").field("index","not_analyzed").endObject().startObject("images").field("type", "string").field("index","not_analyzed").endObject().startObject("recruitEmail").field("type", "string").field("index","not_analyzed").endObject().startObject("ranking").field("type", "integer").endObject().startObject("position").field("type", "string").field("index","not_analyzed").endObject().startObject("createTime").field("type", "date").endObject().startObject("personNum").field("type", "string").field("index","not_analyzed").endObject().startObject("membership").field("type", "string").field("index","not_analyzed").endObject().startObject("sourceUrl1").field("type", "string").field("index","not_analyzed").endObject().startObject("sourceUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("jianjie").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("guanwang").field("type", "string").field("index","not_analyzed").endObject().startObject("isProvKey").field("type", "string").field("index","not_analyzed").endObject().startObject("life").field("type", "double").endObject().startObject("f985").field("type", "string").field("index","not_analyzed").endObject().startObject("forumId").field("type", "integer").endObject().startObject("name").field("type", "string").field("index","not_analyzed").endObject().startObject("createDate").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolcode").field("type", "string").field("index","not_analyzed").endObject().startObject("nameEn").field("type", "string").field("index","not_analyzed").endObject().startObject("isExcellent").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolproperty").field("type", "string").field("index","not_analyzed").endObject().startObject("photo").field("type", "string").field("index","not_analyzed").endObject().startObject("univUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolname").field("type", "string").field("index","not_analyzed").endObject().startObject("address").field("type", "string").field("index","not_analyzed").endObject().startObject("library").field("type", "string").field("index","not_analyzed").endObject().startObject("edudirectly").field("type", "integer").endObject().startObject("badge").field("type", "string").field("index","not_analyzed").endObject().startObject("majors").field("type", "string").field("index","not_analyzed").endObject().startObject("tuitionDetail").field("type", "string").field("index","not_analyzed").endObject().startObject("shoufei").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("tog_images", XContentFactory.jsonBuilder().startObject().startObject("tog_images").startObject("properties").startObject("position").field("type", "integer").endObject().startObject("syncTime").field("type", "date").endObject().startObject("status").field("type", "integer").endObject().startObject("updateTime").field("type", "date").endObject().startObject("imageUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("forumName").field("type", "string").field("index","not_analyzed").endObject().startObject("cityName").field("type", "string").field("index","not_analyzed").endObject().startObject("forumUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("provinceName").field("type", "string").field("index","not_analyzed").endObject().startObject("url").field("type", "string").field("index","not_analyzed").endObject().startObject("authorId").field("type", "integer").endObject().startObject("city").field("type", "integer").endObject().startObject("message").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("author").field("type", "string").field("index","not_analyzed").endObject().startObject("title").field("type", "string").field("index","not_analyzed").endObject().startObject("forumId").field("type", "integer").endObject().startObject("catName").field("type", "string").field("index","not_analyzed").endObject().startObject("province").field("type", "string").field("index","not_analyzed").endObject().startObject("authorUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("catId").field("type", "integer").endObject().startObject("tid").field("type", "integer").endObject().endObject().endObject().endObject());
			builderMap.put("univ_major", XContentFactory.jsonBuilder().startObject().startObject("univ_major").startObject("properties").startObject("md5").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("schoolId").field("type", "integer").endObject().startObject("sourceUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("description").field("type", "string").field("index","not_analyzed").endObject().startObject("name").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("ncee_category", XContentFactory.jsonBuilder().startObject().startObject("ncee_category").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("type_name").field("type", "string").field("index","not_analyzed").endObject().startObject("category_code").field("type", "string").field("index","not_analyzed").endObject().startObject("category_name").field("type", "string").field("index","not_analyzed").endObject().startObject("type_code").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("tog_forum", XContentFactory.jsonBuilder().startObject().startObject("tog_forum").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("isEnable").field("type", "integer").endObject().startObject("dbPwd").field("type", "string").field("index","not_analyzed").endObject().startObject("syncTime").field("type", "integer").endObject().startObject("dbUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("description").field("type", "string").field("index","not_analyzed").endObject().startObject("cityName").field("type", "string").field("index","not_analyzed").endObject().startObject("name").field("type", "string").field("index","not_analyzed").endObject().startObject("province").field("type", "string").field("index","not_analyzed").endObject().startObject("provinceName").field("type", "string").field("index","not_analyzed").endObject().startObject("dbUsername").field("type", "string").field("index","not_analyzed").endObject().startObject("url").field("type", "string").field("index","not_analyzed").endObject().startObject("city").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("univ_category", XContentFactory.jsonBuilder().startObject().startObject("univ_category").startObject("properties").startObject("summary").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("keywords").field("type", "string").field("index","not_analyzed").endObject().startObject("update_time").field("type", "date").endObject().startObject("descMeta").field("type", "string").field("index","not_analyzed").endObject().startObject("description").field("type", "string").field("index","not_analyzed").endObject().startObject("name").field("type", "string").field("index","not_analyzed").endObject().startObject("create_time").field("type", "date").endObject().startObject("displayorder").field("type", "integer").endObject().startObject("code").field("type", "string").field("index","not_analyzed").endObject().startObject("parent_id").field("type", "integer").endObject().endObject().endObject().endObject());
			builderMap.put("tog_category", XContentFactory.jsonBuilder().startObject().startObject("tog_category").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("icon").field("type", "string").field("index","not_analyzed").endObject().startObject("displayorder").field("type", "integer").endObject().startObject("type").field("type", "string").field("index","not_analyzed").endObject().startObject("status").field("type", "string").field("index","not_analyzed").endObject().startObject("url").field("type", "string").field("index","not_analyzed").endObject().startObject("name").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("sys_user", XContentFactory.jsonBuilder().startObject().startObject("sys_user").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("username").field("type", "string").field("index","not_analyzed").endObject().startObject("type").field("type", "integer").endObject().startObject("password").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("tog_slide", XContentFactory.jsonBuilder().startObject().startObject("tog_slide").startObject("properties").startObject("syncTime").field("type", "date").endObject().startObject("status").field("type", "integer").endObject().startObject("updateTime").field("type", "date").endObject().startObject("imageUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("forumName").field("type", "string").field("index","not_analyzed").endObject().startObject("cityName").field("type", "string").field("index","not_analyzed").endObject().startObject("forumUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("provinceName").field("type", "string").field("index","not_analyzed").endObject().startObject("url").field("type", "string").field("index","not_analyzed").endObject().startObject("authorId").field("type", "integer").endObject().startObject("city").field("type", "integer").endObject().startObject("message").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("author").field("type", "string").field("index","not_analyzed").endObject().startObject("title").field("type", "string").field("index","not_analyzed").endObject().startObject("forumId").field("type", "integer").endObject().startObject("catName").field("type", "string").field("index","not_analyzed").endObject().startObject("province").field("type", "string").field("index","not_analyzed").endObject().startObject("authorUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("catId").field("type", "integer").endObject().startObject("tid").field("type", "integer").endObject().endObject().endObject().endObject());
			builderMap.put("sys_set", XContentFactory.jsonBuilder().startObject().startObject("sys_set").startObject("properties").startObject("syncInterval").field("type", "integer").endObject().startObject("id").field("type", "integer").endObject().endObject().endObject().endObject());
			builderMap.put("univ_prov_score", XContentFactory.jsonBuilder().startObject().startObject("univ_prov_score").startObject("properties").startObject("min").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("schoolid").field("type", "integer").endObject().startObject("num").field("type", "string").field("index","not_analyzed").endObject().startObject("max").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolname").field("type", "string").field("index","not_analyzed").endObject().startObject("localprovince").field("type", "string").field("index","not_analyzed").endObject().startObject("var_score").field("type", "string").field("index","not_analyzed").endObject().startObject("var").field("type", "string").field("index","not_analyzed").endObject().startObject("batch").field("type", "string").field("index","not_analyzed").endObject().startObject("fencha").field("type", "string").field("index","not_analyzed").endObject().startObject("provincescore").field("type", "string").field("index","not_analyzed").endObject().startObject("year").field("type", "string").field("index","not_analyzed").endObject().startObject("studenttype").field("type", "string").field("index","not_analyzed").endObject().startObject("old_schoolId").field("type", "integer").endObject().endObject().endObject().endObject());
			builderMap.put("sys_area", XContentFactory.jsonBuilder().startObject().startObject("sys_area").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("pid").field("type", "integer").endObject().startObject("sortWord").field("type", "string").field("index","not_analyzed").endObject().startObject("isRecommend").field("type", "integer").endObject().startObject("name").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("univ_major_category", XContentFactory.jsonBuilder().startObject().startObject("univ_major_category").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("rankingType").field("type", "string").field("index","not_analyzed").endObject().startObject("specialname").field("type", "string").field("index","not_analyzed").endObject().startObject("detail").field("type", "string").field("index","not_analyzed").endObject().startObject("specialurl").field("type", "string").field("index","not_analyzed").endObject().startObject("zytype").field("type", "string").field("index","not_analyzed").endObject().startObject("zycengci").field("type", "string").field("index","not_analyzed").endObject().startObject("zyid").field("type", "string").field("index","not_analyzed").endObject().startObject("code").field("type", "string").field("index","not_analyzed").endObject().startObject("ranking").field("type", "string").field("index","not_analyzed").endObject().startObject("znum").field("type", "string").field("index","not_analyzed").endObject().startObject("bnum").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("univ_major_all", XContentFactory.jsonBuilder().startObject().startObject("univ_major_all").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("title").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolId").field("type", "integer").endObject().startObject("sourceUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("description").field("type", "string").field("index","not_analyzed").endObject().startObject("name").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("sys_ad", XContentFactory.jsonBuilder().startObject().startObject("sys_ad").startObject("properties").startObject("position").field("type", "integer").endObject().startObject("content").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("title").field("type", "string").field("index","not_analyzed").endObject().startObject("status").field("type", "integer").endObject().startObject("updateTime").field("type", "date").endObject().startObject("imageUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("cityName").field("type", "string").field("index","not_analyzed").endObject().startObject("province").field("type", "string").field("index","not_analyzed").endObject().startObject("provinceName").field("type", "string").field("index","not_analyzed").endObject().startObject("type").field("type", "integer").endObject().startObject("url").field("type", "string").field("index","not_analyzed").endObject().startObject("city").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("prov_score", XContentFactory.jsonBuilder().startObject().startObject("prov_score").startObject("properties").startObject("score").field("type", "integer").endObject().startObject("province").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("year").field("type", "string").field("index","not_analyzed").endObject().startObject("type").field("type", "string").field("index","not_analyzed").endObject().startObject("batch").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("univ_images", XContentFactory.jsonBuilder().startObject().startObject("univ_images").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("sid").field("type", "integer").endObject().startObject("category").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolname").field("type", "string").field("index","not_analyzed").endObject().startObject("category_id").field("type", "integer").endObject().startObject("schoolId").field("type", "integer").endObject().startObject("category_code").field("type", "string").field("index","not_analyzed").endObject().startObject("type").field("type", "string").field("index","not_analyzed").endObject().startObject("type_id").field("type", "integer").endObject().startObject("url").field("type", "string").field("index","not_analyzed").endObject().startObject("old_schoolId").field("type", "integer").endObject().startObject("type_code").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("univ_arti_set", XContentFactory.jsonBuilder().startObject().startObject("univ_arti_set").startObject("properties").startObject("content").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().endObject().endObject().endObject());
			builderMap.put("tog_cat_mapping", XContentFactory.jsonBuilder().startObject().startObject("tog_cat_mapping").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("oldCatName").field("type", "string").field("index","not_analyzed").endObject().startObject("oldCatId").field("type", "integer").endObject().startObject("catId").field("type", "integer").endObject().startObject("forumId").field("type", "integer").endObject().startObject("url").field("type", "string").field("index","not_analyzed").endObject().startObject("catName").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("univ_major_score", XContentFactory.jsonBuilder().startObject().startObject("univ_major_score").startObject("properties").startObject("min").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolid").field("type", "integer").endObject().startObject("max").field("type", "string").field("index","not_analyzed").endObject().startObject("var_score").field("type", "string").field("index","not_analyzed").endObject().startObject("var").field("type", "string").field("index","not_analyzed").endObject().startObject("zyid").field("type", "string").field("index","not_analyzed").endObject().startObject("url").field("type", "string").field("index","not_analyzed").endObject().startObject("specialtyname").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("schoolname").field("type", "string").field("index","not_analyzed").endObject().startObject("localprovince").field("type", "string").field("index","not_analyzed").endObject().startObject("batch").field("type", "string").field("index","not_analyzed").endObject().startObject("year").field("type", "string").field("index","not_analyzed").endObject().startObject("studenttype").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("tog_post", XContentFactory.jsonBuilder().startObject().startObject("tog_post").startObject("properties").startObject("summary").field("type", "string").field("index","not_analyzed").endObject().startObject("fid").field("type", "integer").endObject().startObject("stick").field("type", "string").field("index","not_analyzed").endObject().startObject("syncTime").field("type", "date").endObject().startObject("showSummary").field("type", "integer").endObject().startObject("subject").field("type", "string").field("index","not_analyzed").endObject().startObject("forumName").field("type", "string").field("index","not_analyzed").endObject().startObject("cityName").field("type", "string").field("index","not_analyzed").endObject().startObject("forumUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("digest").field("type", "string").field("index","not_analyzed").endObject().startObject("provinceName").field("type", "string").field("index","not_analyzed").endObject().startObject("dateline").field("type", "date").endObject().startObject("highlight").field("type", "string").field("index","not_analyzed").endObject().startObject("authorId").field("type", "integer").endObject().startObject("city").field("type", "integer").endObject().startObject("id").field("type", "integer").endObject().startObject("categoryName").field("type", "string").field("index","not_analyzed").endObject().startObject("author").field("type", "string").field("index","not_analyzed").endObject().startObject("forumId").field("type", "integer").endObject().startObject("province").field("type", "string").field("index","not_analyzed").endObject().startObject("tid").field("type", "integer").endObject().startObject("oldSubject").field("type", "string").field("index","not_analyzed").endObject().startObject("status").field("type", "string").field("index","not_analyzed").endObject().startObject("categoryId").field("type", "integer").endObject().startObject("url").field("type", "string").field("index","not_analyzed").endObject().startObject("message").field("type", "string").field("index","not_analyzed").endObject().startObject("oldStatus").field("type", "string").field("index","not_analyzed").endObject().startObject("views").field("type", "integer").endObject().startObject("replies").field("type", "integer").endObject().startObject("authorUrl").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("ncee_acticle", XContentFactory.jsonBuilder().startObject().startObject("ncee_acticle").startObject("properties").startObject("source_url").field("type", "string").field("index","not_analyzed").endObject().startObject("state").field("type", "string").field("index","not_analyzed").endObject().startObject("category_id").field("type", "integer").endObject().startObject("type_id").field("type", "integer").endObject().startObject("type_code").field("type", "string").field("index","not_analyzed").endObject().startObject("content").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("title").field("type", "string").field("index","not_analyzed").endObject().startObject("source").field("type", "string").field("index","not_analyzed").endObject().startObject("update_time").field("type", "date").endObject().startObject("category_name").field("type", "string").field("index","not_analyzed").endObject().startObject("publish_time").field("type", "date").endObject().startObject("create_time").field("type", "date").endObject().startObject("type_name").field("type", "string").field("index","not_analyzed").endObject().startObject("hot").field("type", "string").field("index","not_analyzed").endObject().startObject("page_num").field("type", "integer").endObject().startObject("category_code").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("sys_link", XContentFactory.jsonBuilder().startObject().startObject("sys_link").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("logo").field("type", "string").field("index","not_analyzed").endObject().startObject("description").field("type", "string").field("index","not_analyzed").endObject().startObject("url").field("type", "string").field("index","not_analyzed").endObject().startObject("name").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("tog_user", XContentFactory.jsonBuilder().startObject().startObject("tog_user").startObject("properties").startObject("id").field("type", "integer").endObject().startObject("username").field("type", "string").field("index","not_analyzed").endObject().startObject("email").field("type", "string").field("index","not_analyzed").endObject().startObject("status").field("type", "integer").endObject().startObject("regTime").field("type", "date").endObject().startObject("cityName").field("type", "string").field("index","not_analyzed").endObject().startObject("province").field("type", "string").field("index","not_analyzed").endObject().startObject("provinceName").field("type", "string").field("index","not_analyzed").endObject().startObject("regIp").field("type", "string").field("index","not_analyzed").endObject().startObject("password").field("type", "string").field("index","not_analyzed").endObject().startObject("city").field("type", "integer").endObject().endObject().endObject().endObject());
			builderMap.put("tog_univ", XContentFactory.jsonBuilder().startObject().startObject("tog_univ").startObject("properties").startObject("summary").field("type", "string").field("index","not_analyzed").endObject().startObject("position").field("type", "string").field("index","not_analyzed").endObject().startObject("createTime").field("type", "date").endObject().startObject("personNum").field("type", "string").field("index","not_analyzed").endObject().startObject("nameEn").field("type", "string").field("index","not_analyzed").endObject().startObject("sourceUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("photo").field("type", "string").field("index","not_analyzed").endObject().startObject("id").field("type", "integer").endObject().startObject("recruit").field("type", "string").field("index","not_analyzed").endObject().startObject("category").field("type", "string").field("index","not_analyzed").endObject().startObject("univUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("forumId").field("type", "integer").endObject().startObject("description").field("type", "string").field("index","not_analyzed").endObject().startObject("name").field("type", "string").field("index","not_analyzed").endObject().startObject("images").field("type", "string").field("index","not_analyzed").endObject().startObject("tuition").field("type", "string").field("index","not_analyzed").endObject().startObject("majors").field("type", "string").field("index","not_analyzed").endObject().startObject("createDate").field("type", "string").field("index","not_analyzed").endObject().startObject("tuitionDetail").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
			builderMap.put("univ_ext", XContentFactory.jsonBuilder().startObject().startObject("univ_ext").startObject("properties").startObject("schoolid").field("type", "string").field("index","not_analyzed").endObject().startObject("membership").field("type", "string").field("index","not_analyzed").endObject().startObject("study").field("type", "string").field("index","not_analyzed").endObject().startObject("schooltype").field("type", "string").field("index","not_analyzed").endObject().startObject("jianjie").field("type", "string").field("index","not_analyzed").endObject().startObject("sourceUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("rankingCollegetype").field("type", "integer").endObject().startObject("id").field("type", "integer").endObject().startObject("guanwang").field("type", "string").field("index","not_analyzed").endObject().startObject("level").field("type", "string").field("index","not_analyzed").endObject().startObject("life").field("type", "string").field("index","not_analyzed").endObject().startObject("f985").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolnature").field("type", "string").field("index","not_analyzed").endObject().startObject("province").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolcode").field("type", "string").field("index","not_analyzed").endObject().startObject("work").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolproperty").field("type", "string").field("index","not_analyzed").endObject().startObject("oldname").field("type", "string").field("index","not_analyzed").endObject().startObject("f211").field("type", "string").field("index","not_analyzed").endObject().startObject("recruitPhone").field("type", "string").field("index","not_analyzed").endObject().startObject("schoolname").field("type", "string").field("index","not_analyzed").endObject().startObject("recruitUrl").field("type", "string").field("index","not_analyzed").endObject().startObject("address").field("type", "string").field("index","not_analyzed").endObject().startObject("autonomyrs").field("type", "string").field("index","not_analyzed").endObject().startObject("library").field("type", "string").field("index","not_analyzed").endObject().startObject("edudirectly").field("type", "integer").endObject().startObject("badge").field("type", "string").field("index","not_analyzed").endObject().startObject("recruitEmail").field("type", "string").field("index","not_analyzed").endObject().startObject("ranking").field("type", "integer").endObject().startObject("shoufei").field("type", "string").field("index","not_analyzed").endObject().endObject().endObject().endObject());
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
}
